<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2022-12-30 16:15:31
 * @Last Modified time: 2023-01-09 09:50:19
 */

namespace app\common\dao\store;

use frank\base\BaseDao;
use app\common\model\store\DiyPageModel;

/**
 * Class DiyPageDao
 * @package app\common\dao\store
 */
class DiyPageDao extends BaseDao
{
    /**
     * 设置模型名
     */
    protected function setModel(): string
    {
        return DiyPageModel::class;
    }
    

    /**
     * 获取列表
     */
    public function getDiyPageList(array $where = [], int $page, int $limit)
    {
        return $this->search($where)->order('id DESC')->page($page)->paginate($limit)->toArray();
    }
}
